package com.ysm.smfu.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.ysm.smfu.R;
import com.ysm.smfu.activity.PaySetActivity;
import com.ysm.smfu.utils.UIUtils;
import com.zhy.autolayout.AutoRelativeLayout;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by Administrator on 2016/10/14.
 */
public class ShouKuanFragment extends MyBaseFragment {

    @BindView(R.id.money_pay)
    AutoRelativeLayout moneyPay;
    @BindView(R.id.jifen_pay)
    AutoRelativeLayout jifenPay;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = UIUtils.inflate(R.layout.fragment_shoukuan_main);
        ButterKnife.bind(this, view);
        return view;
    }


    @OnClick({R.id.money_pay, R.id.jifen_pay})
    public void onclick(View view) {
        switch (view.getId()) {
            case R.id.money_pay:
//                生成消费订单
                UIUtils.startActivity(PaySetActivity.class, "pay", 0);
                break;
            case R.id.jifen_pay:
//                积分生成订单
                UIUtils.startActivity(PaySetActivity.class, "pay", 1);
                break;
        }
    }

}
